import { Catch } from '@midwayjs/core';
@Catch()
export class DefaultErrorFilter {
  async catch(err) {
    return {
      code: err.status ?? 500,
      message: err.message,
    };
  }
}
